package com.scrumtrek.trainings.tdd;

/**
 * Created with IntelliJ IDEA.
 * User: neee
 * Date: 13.09.13
 * Time: 9:35
 * To change this template use File | Settings | File Templates.
 */
public class BookBuilder {
    private Book book;

    public BookBuilder () {
        this.book = new Book();
    }

    public Book build(){
        return this.book;
    }

    public void setAuthor(String author) {
        this.book.setAuthor(author);
    }

    public void setTitle(String title) {
        this.book.setTitle(title);
    }

    public void setPublisher(String publisher) {
        this.book.setPublisher(publisher);
    }

    public void setYear(String year) {
        this.book.setYear(year);
    }

    public void setPrice(int price){
        this.book.setPrice(price);
    }
}
